package com.product.bargain.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.product.common.utils.PageUtils;
import com.product.common.utils.Query;

import com.product.bargain.dao.BargainRecordDao;
import com.product.bargain.entity.BargainRecordEntity;
import com.product.bargain.service.BargainRecordService;


@Service("bargainRecordService")
public class BargainRecordServiceImpl extends ServiceImpl<BargainRecordDao, BargainRecordEntity> implements BargainRecordService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<BargainRecordEntity> page = this.page(
                new Query<BargainRecordEntity>().getPage(params),
                new QueryWrapper<BargainRecordEntity>()
        );

        return new PageUtils(page);
    }

}